﻿namespace Away.IdentityServer.Core.Repositories;

/// <summary>
/// 身份资源仓储
/// </summary>
public interface IIdResourceRepository
{
    /// <summary>
    /// 查询身份资源列表
    /// </summary>
    /// <returns></returns>
    List<SelectItems> List();
    /// <summary>
    /// 查询身份资源分页列表
    /// </summary>
    /// <param name="search"></param>
    /// <returns></returns>k
    IResult Page(IdResourcesSearch search);
    /// <summary>
    /// 添加、编辑身份资源
    /// </summary>
    /// <param name="model"></param>
    void Save(IdentityResource model);
    /// <summary>
    /// 删除身份资源
    /// </summary>
    /// <param name="ids"></param>
    void Remove(List<int> ids);
}
